
<form id="form_add">
<input type="hidden" name="rate" id="rate" value="" size="12">
<input type="hidden" name="rmb" id="rmb" value="" size="12">
<table>
	<tr>
		<td align="right">客户：</td>
		<td colspan="3"><input type="text" name="customer" id="customer"
				value="" size="20" title="{[$t.customer]}"> <a href="javascript:void(0)"
			id="customer_x" onclick="Common.toggle(this, '#label_linkman_a')(this)" class="ui-icon ui-icon-circle-triangle-w"
			style="display: inline-table"></a></td>
	</tr>
	
	<tr id="label_linkman_a">
		<td></td>
		<td colspan="3">{[include file="contact/customer/_linkman.tpl"]}</td>
	</tr>
	<tr>
		<td align="right">景荣：</td>
		<td colspan="3"><select name='tec'>
			{[html_options options=$tec_option selected=2]}
		</select></td>
	</tr>
	<tr>
		<td align="right">事由：</td>
		<td colspan="3"><textarea rows="2" name="name" id="name" cols="55"></textarea></td>
	</tr>
	<tr>
		<td align="right">金额：</td>
		<td colspan="3"><input type="text" name="amount" id="amount" value="" size="12" disabled> <select name='currency' id='currency'>
			{[html_options options=$currency_option selected=USD]}
		</select> <label id="label_amount"></label></td>
	</tr>
	<tr>
		<td width="20%" align="right">业务员：</td>
		<td width="30%"><input type="text" name="emp" id="emp" value="" size="12" title="{[$t.emp_|emp:'业务员']}"></td>
		<td width="20%" align="right">货物编码：</td>
		<td width="30%"><input type="text" name="hscode" id="hscode" value="" size="12"></td>
	</tr>
	<tr>
		<td align="right">填单日期：</td>
		<td><input type="text" name="date" id="date" value="{[$smarty.now|date_format:'%Y-%m-%d']}" size="12"></td>
		<td align="right">货运条款：</td>
		<td><select name='delivery' id='delivery'>
			{[html_options options=$delivery_option selected=1]}
		</select> <label id="label_amount"></label></td>
	</tr>
	
	<tr>
		<td align="right">备注：</td>
		<td colspan="3"><textarea rows="2" name="content" cols="55"></textarea></td>
	</tr>
</table>
</form>

<div style="margin-top:10px; margin-bottom:5px; width:660px;float:left;">
<div id="myGrid" style="width:100%;height:160px;"></div>
</div>
<table border="0">
	<tr>
		<td width="370" align="right">合计：</td>
		<td width="80"><div id="total_t"></div></td>
		<td></td>
	</tr>
</table>

<script type='text/javascript'>
var data = {[$result.item]};
var currency_json = {[$currency]};
</script>

<script type="text/javascript" src="js/express/invoice/columns_add.js?r={[$smarty.now]}"></script>
<script type="text/javascript" src="js/express/invoice/add.js?r={[$smarty.now]}"></script>
